package com.hyw.supply.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 供应商订单信息
 * </p>
 *
 * @author zzp
 * @since 2024-04-18
 */
@Getter
@Setter
public class SupplyOrderVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "id", description = "主键id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "sku编码")
    private String skuCode;

    @Schema(description = "商品规格")
    private String goodsSpecs;

    @Schema(description = "商品单价")
    private BigDecimal goodsPrice;

    @Schema( description = "商品数量")
    private Integer goodsNumber;

    @Schema( description = "商品类型")
    private String goodsType;

    @Schema( description = "发货方式")
    private String deliveryMode;

    @Schema(description = "收货人")
    private String receiver;

    @Schema(description = "收货人手机号")
    private String receiverPhone;

    @Schema( description = "订单状态(0待付款 1待发货-待备货 2待发货-出库失败 3待发货-出库中 4待发货-部分出库 5退单待审核 6待收货 7已完成 8已退单 9已取消)")
    private String orderStatus;

    @Schema( description = "订单状态编码(0待付款 1待发货-待备货 2待发货-出库失败 3待发货-出库中 4待发货-部分出库 5退单待审核 6待收货 7已完成 8已退单 9已取消)")
    private Integer orderStatusCode;

    @Schema( description = "订单金额")
    private BigDecimal orderPrice;

    @Schema(description = "买家留言")
    private String buyerMessage;

    @Schema(description = "售卖方式")
    private String sellingMode;

    @Schema( description = "下单时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime placeOrderDate;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "收货人地址")
    private String receiverAddress;

    @Schema(description = "快递公司")
    private String expressCompany;

    @Schema(description = "快递单号")
    private String expressOrderNo;

    @Schema(description = "发货时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deliveryDate;

    @Schema(title = "enterprise", description = "企业主体")
    private String enterprise;

    @Schema(title = "itemName", description = "项目名称")
    private String itemName;

    @Schema(title = "serialNumber", description = "3c序列号")
    private String serialNumber;

}
